package com.sino.config.server.bean.config;

import javax.validation.constraints.NotNull;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.sino.config.server.bean.Entity;

/**
 * @author kerbores
 *
 */
@Table("t_property")
@Comment("配置信息表")
public class Property extends Entity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column("p_key")
	@Comment("配置 key")
	@NotNull(message = "配置名称不能为空")
	String key;

	@Column("p_value")
	@Comment("配置值")
	@NotNull(message = "配置值不能为空")
	String value;

	@Column("p_application_id")
	@Comment("归属的应用 id")
	long applicationId;

	@Column("p_profile_id")
	@Comment("profile id")
	long profileId;

	@Column("p_label_id")
	@Comment("label id")
	long labelId;

	/**
	 * @return the key
	 */
	public String getKey() {
		return key;
	}

	/**
	 * @param key
	 *            the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * @return the applicationId
	 */
	public long getApplicationId() {
		return applicationId;
	}

	/**
	 * @param applicationId
	 *            the applicationId to set
	 */
	public void setApplicationId(long applicationId) {
		this.applicationId = applicationId;
	}

	/**
	 * @return the profileId
	 */
	public long getProfileId() {
		return profileId;
	}

	/**
	 * @param profileId
	 *            the profileId to set
	 */
	public void setProfileId(long profileId) {
		this.profileId = profileId;
	}

	/**
	 * @return the labelId
	 */
	public long getLabelId() {
		return labelId;
	}

	/**
	 * @param labelId
	 *            the labelId to set
	 */
	public void setLabelId(long labelId) {
		this.labelId = labelId;
	}

}
